package etxt2db.features;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;



public class PatternFeatureClassifier extends CharacterFeatureClassifier implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4311555969287503361L;

	public List<String> emit(String text) {
		List<String> result = new ArrayList<String>();
		result.add("Pattern=" + text.replaceAll("[A-Z]+","X+").replaceAll("[a-z]+","x+").replaceAll("[0-9]+","9+"));
		return result;
	}
}
